home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hobby PC 13
/
Hobby PC 13.iso
/
assets
/
Asset Library
/
Images
/
Mouseover Buttons
/
For Any Dark Background
/
redplastic
/
fxitems.xml
< prev
next >
Wrap
Extensible Markup Language
|
2001-04-09
|
6KB
|
80 lines
<?xml version="1.0" standalone="yes"?>
<Items>
<Template>
<Item Type="File" CLASS="Mouseover Button" ID="%Filename%" FILEFILTER="*.gif;*.jpg;*.png">
<Icon SRC="%Filename%"/>
<Icon2 SRC="%Filename%"/>
<Description>%ASK:Description:%{Button ALT Text}</Description>
<Filename SRC="%Filename%"/>
<Filename2 SRC="%Filename%"/>
<SCRIPT LANGUAGE="JScript"><![CDATA[
var src, src2, dest, attr, attr2, dst2, dst;
src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
src2 = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename2, 0, SRC)%";
function buildpath()
{
if (ActiveDocument.InCurrentProject)
{
dst = Application.ProjectDirectory + "\\images\\buttons\\default\\%Filename%";
dst2 = Application.ProjectDirectory + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
attr = Application.PathToURL(dst, ActiveDocument.Path + "default/%Filename%");
attr2 = Application.PathToURL(dst2, ActiveDocument.Path + "over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%");
}
else
{
dst = ActiveDocument.Path + "\\images\\buttons\\default\\%Filename%";
dst2 = ActiveDocument.Path + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
attr = "images/buttons/default/%Filename%";
attr2 = "images/buttons/over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
}
}
function dropfxnow()
{
Application.FX.CopyFile(src, dst);
Application.FX.CopyFile(src2, dst2);
Application.FX.SelectDropPoint();
AttrID=ActiveDocument.UniqueAttributeValue("ID","hover")
Application.FX.HTML('<A HREF=\"{Choose URL}\" ONMOUSEOVER=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr2 + '\'\}\" ONMOUSEOUT=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr + '\'}\"><IMG ID=\"' + AttrID + '\" SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
Application.FX.ShowDialog('ANCHOR');
}
// First, check if the file is saved
if (ActiveDocument.Path != "")
{
buildpath();
dropfxnow();
}
else
{
ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
if (ans == 1)
{
ActiveDocument.SaveAs();
}
if (ActiveDocument.Path != "") //check again if they did indeed save and name file
{
buildpath();
dropfxnow();
}
}
]]>
</SCRIPT>
</Item>
</Template>
<Item Type="File" CLASS="Mouseover Button" ID="td_trattn"><Icon SRC="td_trattn.gif"/><Icon2 SRC="(td)trattn.gif"/><Description>Attention</Description><Filename SRC="td_trattn.gif"/><Filename2 SRC="(td)trattn.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_trcautio"><Icon SRC="td_trcautio.gif"/><Icon2 SRC="(td)trcautio.gif"/><Description>Caution</Description><Filename SRC="td_trcautio.gif"/><Filename2 SRC="(td)trcautio.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_trdown"><Icon SRC="td_trdown.gif"/><Icon2 SRC="(td)trdown.gif"/><Description>Down</Description><Filename SRC="td_trdown.gif"/><Filename2 SRC="(td)trdown.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_tremail"><Icon SRC="td_tremail.gif"/><Icon2 SRC="(td)tremail.gif"/><Description>Email</Description><Filename SRC="td_tremail.gif"/><Filename2 SRC="(td)tremail.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_trgoback"><Icon SRC="td_trgoback.gif"/><Icon2 SRC="(td)trgoback.gif"/><Description>Go Back</Description><Filename SRC="td_trgoback.gif"/><Filename2 SRC="(td)trgoback.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_trhelp"><Icon SRC="td_trhelp.gif"/><Icon2 SRC="(td)trhelp.gif"/><Description>Help</Description><Filename SRC="td_trhelp.gif"/><Filename2 SRC="(td)trhelp.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_trhome"><Icon SRC="td_trhome.gif"/><Icon2 SRC="(td)trhome.gif"/><Description>Home</Description><Filename SRC="td_trhome.gif"/><Filename2 SRC="(td)trhome.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_trnext"><Icon SRC="td_trnext.gif"/><Icon2 SRC="(td)trnext.gif"/><Description>Next</Description><Filename SRC="td_trnext.gif"/><Filename2 SRC="(td)trnext.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_trprev"><Icon SRC="td_trprev.gif"/><Icon2 SRC="(td)trprev.gif"/><Description>Previous</Description><Filename SRC="td_trprev.gif"/><Filename2 SRC="(td)trprev.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="td_trup"><Icon SRC="td_trup.gif"/><Icon2 SRC="(td)trup.gif"/><Description>Up</Description><Filename SRC="td_trup.gif"/><Filename2 SRC="(td)trup.gif"/></Item>
</Items>